package com.antdesignbackend.backend.mapper;

import com.antdesignbackend.backend.entity.ChargingFlow;
import com.antdesignbackend.backend.entity.entityVo.AppointmentVo;
import com.antdesignbackend.backend.entity.entityVo.ChargingFlowVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ChargingFlowMapper extends BaseMapper<ChargingFlow> {
    List<ChargingFlowVo> search(@Param(Constants.WRAPPER) QueryWrapper<ChargingFlowVo> queryWrapper, Page<ChargingFlowVo> page);
    Integer count(@Param(Constants.WRAPPER) QueryWrapper<ChargingFlowVo> queryWrapper);
    List<ChargingFlowVo> searcha(@Param(Constants.WRAPPER) QueryWrapper<ChargingFlowVo> queryWrapper, Page<ChargingFlowVo> page);
    Integer counta(@Param(Constants.WRAPPER) QueryWrapper<ChargingFlowVo> queryWrapper);
    ChargingFlowVo totala(@Param(Constants.WRAPPER) QueryWrapper<ChargingFlowVo> queryWrapper);
    List<AppointmentVo> searchm(@Param(Constants.WRAPPER) QueryWrapper<AppointmentVo> queryWrapper, Page<AppointmentVo> page);
    Integer countm(@Param(Constants.WRAPPER) QueryWrapper<AppointmentVo> queryWrapper);
    ChargingFlowVo totalm(@Param(Constants.WRAPPER) QueryWrapper<ChargingFlowVo> queryWrapper);
}
